package com.luych.toolbox.data.service.entity;

import com.luych.toolbox.common.enums.DataComparePlanStatus;
import com.luych.toolbox.common.service.base.BaseEntity;

import javax.persistence.*;

@Entity
@Table(name = "data_compare_plan")
public class DataComparePlan extends BaseEntity {

    @Column(name = "data_source_one_id")
    private String dataSourceOneId;
    @Column(name = "data_source_two_id")
    private String dataSourceTwoId;
    @Column(name = "name")
    private String name;
    @Column(name = "cron")
    private String cron;
    @Column(name = "status")
    @Enumerated(EnumType.STRING)
    private DataComparePlanStatus status;
    @Column(name = "owner_id")
    private String ownerId;

    public String getDataSourceOneId() {
        return dataSourceOneId;
    }

    public void setDataSourceOneId(String dataSourceOneId) {
        this.dataSourceOneId = dataSourceOneId;
    }

    public String getDataSourceTwoId() {
        return dataSourceTwoId;
    }

    public void setDataSourceTwoId(String dataSourceTwoId) {
        this.dataSourceTwoId = dataSourceTwoId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public DataComparePlanStatus getStatus() {
        return status;
    }

    public void setStatus(DataComparePlanStatus status) {
        this.status = status;
    }

    public String getCron() {
        return cron;
    }

    public void setCron(String cron) {
        this.cron = cron;
    }

    public String getOwnerId() {
        return ownerId;
    }

    public void setOwnerId(String ownerId) {
        this.ownerId = ownerId;
    }
}